home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / websrvcs / nsISchemaLoader.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  8KB  |  216 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISchemaLoader.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISchemaLoader_h__
  6. #define __gen_nsISchemaLoader_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIWebServiceErrorHandler_h__
  14. #include "nsIWebServiceErrorHandler.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. class nsISchema; /* forward declaration */
  22.  
  23. class nsISchemaType; /* forward declaration */
  24.  
  25. class nsIDOMElement; /* forward declaration */
  26.  
  27. class nsISchemaLoadListener; /* forward declaration */
  28.  
  29.  
  30. /* starting interface:    nsISchemaLoader */
  31. #define NS_ISCHEMALOADER_IID_STR "9b2f0b4a-8f00-4a78-961a-7e84ed49b0b6"
  32.  
  33. #define NS_ISCHEMALOADER_IID \
  34.   {0x9b2f0b4a, 0x8f00, 0x4a78, \
  35.     { 0x96, 0x1a, 0x7e, 0x84, 0xed, 0x49, 0xb0, 0xb6 }}
  36.  
  37. class NS_NO_VTABLE nsISchemaLoader : public nsISupports {
  38.  public: 
  39.  
  40.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISCHEMALOADER_IID)
  41.  
  42.   /* nsISchema load (in AString schemaURI); */
  43.   NS_IMETHOD Load(const nsAString & schemaURI, nsISchema **_retval) = 0;
  44.  
  45.   /* void loadAsync (in AString schemaURI, in nsISchemaLoadListener listener); */
  46.   NS_IMETHOD LoadAsync(const nsAString & schemaURI, nsISchemaLoadListener *listener) = 0;
  47.  
  48.   /* nsISchema processSchemaElement (in nsIDOMElement element, in nsIWebServiceErrorHandler aErrorHandler); */
  49.   NS_IMETHOD ProcessSchemaElement(nsIDOMElement *element, nsIWebServiceErrorHandler *aErrorHandler, nsISchema **_retval) = 0;
  50.  
  51. };
  52.  
  53. /* Use this macro when declaring classes that implement this interface. */
  54. #define NS_DECL_NSISCHEMALOADER \
  55.   NS_IMETHOD Load(const nsAString & schemaURI, nsISchema **_retval); \
  56.   NS_IMETHOD LoadAsync(const nsAString & schemaURI, nsISchemaLoadListener *listener); \
  57.   NS_IMETHOD ProcessSchemaElement(nsIDOMElement *element, nsIWebServiceErrorHandler *aErrorHandler, nsISchema **_retval); 
  58.  
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  60. #define NS_FORWARD_NSISCHEMALOADER(_to) \
  61.   NS_IMETHOD Load(const nsAString & schemaURI, nsISchema **_retval) { return _to Load(schemaURI, _retval); } \
  62.   NS_IMETHOD LoadAsync(const nsAString & schemaURI, nsISchemaLoadListener *listener) { return _to LoadAsync(schemaURI, listener); } \
  63.   NS_IMETHOD ProcessSchemaElement(nsIDOMElement *element, nsIWebServiceErrorHandler *aErrorHandler, nsISchema **_retval) { return _to ProcessSchemaElement(element, aErrorHandler, _retval); } 
  64.  
  65. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  66. #define NS_FORWARD_SAFE_NSISCHEMALOADER(_to) \
  67.   NS_IMETHOD Load(const nsAString & schemaURI, nsISchema **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Load(schemaURI, _retval); } \
  68.   NS_IMETHOD LoadAsync(const nsAString & schemaURI, nsISchemaLoadListener *listener) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadAsync(schemaURI, listener); } \
  69.   NS_IMETHOD ProcessSchemaElement(nsIDOMElement *element, nsIWebServiceErrorHandler *aErrorHandler, nsISchema **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessSchemaElement(element, aErrorHandler, _retval); } 
  70.  
  71. #if 0
  72. /* Use the code below as a template for the implementation class for this interface. */
  73.  
  74. /* Header file */
  75. class nsSchemaLoader : public nsISchemaLoader
  76. {
  77. public:
  78.   NS_DECL_ISUPPORTS
  79.   NS_DECL_NSISCHEMALOADER
  80.  
  81.   nsSchemaLoader();
  82.  
  83. private:
  84.   ~nsSchemaLoader();
  85.  
  86. protected:
  87.   /* additional members */
  88. };
  89.  
  90. /* Implementation file */
  91. NS_IMPL_ISUPPORTS1(nsSchemaLoader, nsISchemaLoader)
  92.  
  93. nsSchemaLoader::nsSchemaLoader()
  94. {
  95.   /* member initializers and constructor code */
  96. }
  97.  
  98. nsSchemaLoader::~nsSchemaLoader()
  99. {
  100.   /* destructor code */
  101. }
  102.  
  103. /* nsISchema load (in AString schemaURI); */
  104. NS_IMETHODIMP nsSchemaLoader::Load(const nsAString & schemaURI, nsISchema **_retval)
  105. {
  106.     return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108.  
  109. /* void loadAsync (in AString schemaURI, in nsISchemaLoadListener listener); */
  110. NS_IMETHODIMP nsSchemaLoader::LoadAsync(const nsAString & schemaURI, nsISchemaLoadListener *listener)
  111. {
  112.     return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114.  
  115. /* nsISchema processSchemaElement (in nsIDOMElement element, in nsIWebServiceErrorHandler aErrorHandler); */
  116. NS_IMETHODIMP nsSchemaLoader::ProcessSchemaElement(nsIDOMElement *element, nsIWebServiceErrorHandler *aErrorHandler, nsISchema **_retval)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120.  
  121. /* End of implementation class template. */
  122. #endif
  123.  
  124.  
  125. /* starting interface:    nsISchemaLoadListener */
  126. #define NS_ISCHEMALOADLISTENER_IID_STR "8d9aa9ce-e191-11d8-9f31-000393b6661a"
  127.  
  128. #define NS_ISCHEMALOADLISTENER_IID \
  129.   {0x8d9aa9ce, 0xe191, 0x11d8, \
  130.     { 0x9f, 0x31, 0x00, 0x03, 0x93, 0xb6, 0x66, 0x1a }}
  131.  
  132. class NS_NO_VTABLE nsISchemaLoadListener : public nsIWebServiceErrorHandler {
  133.  public: 
  134.  
  135.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISCHEMALOADLISTENER_IID)
  136.  
  137.   /* void onLoad (in nsISchema schema); */
  138.   NS_IMETHOD OnLoad(nsISchema *schema) = 0;
  139.  
  140. };
  141.  
  142. /* Use this macro when declaring classes that implement this interface. */
  143. #define NS_DECL_NSISCHEMALOADLISTENER \
  144.   NS_IMETHOD OnLoad(nsISchema *schema); 
  145.  
  146. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  147. #define NS_FORWARD_NSISCHEMALOADLISTENER(_to) \
  148.   NS_IMETHOD OnLoad(nsISchema *schema) { return _to OnLoad(schema); } 
  149.  
  150. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  151. #define NS_FORWARD_SAFE_NSISCHEMALOADLISTENER(_to) \
  152.   NS_IMETHOD OnLoad(nsISchema *schema) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnLoad(schema); } 
  153.  
  154. #if 0
  155. /* Use the code below as a template for the implementation class for this interface. */
  156.  
  157. /* Header file */
  158. class nsSchemaLoadListener : public nsISchemaLoadListener
  159. {
  160. public:
  161.   NS_DECL_ISUPPORTS
  162.   NS_DECL_NSISCHEMALOADLISTENER
  163.  
  164.   nsSchemaLoadListener();
  165.  
  166. private:
  167.   ~nsSchemaLoadListener();
  168.  
  169. protected:
  170.   /* additional members */
  171. };
  172.  
  173. /* Implementation file */
  174. NS_IMPL_ISUPPORTS1(nsSchemaLoadListener, nsISchemaLoadListener)
  175.  
  176. nsSchemaLoadListener::nsSchemaLoadListener()
  177. {
  178.   /* member initializers and constructor code */
  179. }
  180.  
  181. nsSchemaLoadListener::~nsSchemaLoadListener()
  182. {
  183.   /* destructor code */
  184. }
  185.  
  186. /* void onLoad (in nsISchema schema); */
  187. NS_IMETHODIMP nsSchemaLoadListener::OnLoad(nsISchema *schema)
  188. {
  189.     return NS_ERROR_NOT_IMPLEMENTED;
  190. }
  191.  
  192. /* End of implementation class template. */
  193. #endif
  194.  
  195. #define NS_SCHEMALOADER_CID                           \
  196. { /* 5adc10f0-74e1-11d5-9b49-00104bdf5339 */          \
  197.  0x5adc10f0, 0x74e1, 0x11d5,                          \
  198. {0x9b, 0x49, 0x00, 0x10, 0x4b, 0xdf, 0x53, 0x39}}     
  199. #define NS_SCHEMALOADER_CONTRACTID "@mozilla.org/xmlextras/schemas/schemaloader;1"
  200. #define NS_BUILTINSCHEMACOLLECTION_CID                \
  201. { /* a83b0823-f10e-4235-9859-88a5abd2ed54 */          \
  202.  0xa83b0823, 0xf10e, 0x4235,                          \
  203. {0x98, 0x59, 0x88, 0xa5, 0xab, 0xd2, 0xed, 0x54}}
  204. #define NS_BUILTINSCHEMACOLLECTION_CONTRACTID "@mozilla.org/xmlextras/schemas/builtinschemacollection;1"
  205. #define NS_ERROR_SCHEMA_NOT_SCHEMA_ELEMENT NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 1)
  206. #define NS_ERROR_SCHEMA_UNKNOWN_TARGET_NAMESPACE NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 2)
  207. #define NS_ERROR_SCHEMA_UNKNOWN_TYPE NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 3)
  208. #define NS_ERROR_SCHEMA_UNKNOWN_PREFIX NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 4)
  209. #define NS_ERROR_SCHEMA_INVALID_STRUCTURE NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 5)
  210. #define NS_ERROR_SCHEMA_INVALID_TYPE_USAGE NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 6)
  211. #define NS_ERROR_SCHEMA_MISSING_TYPE NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 7)
  212. #define NS_ERROR_SCHEMA_FACET_VALUE_ERROR NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 8)
  213. #define NS_ERROR_SCHEMA_LOADING_ERROR NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 9)
  214.  
  215. #endif /* __gen_nsISchemaLoader_h__ */
  216.